package com.atmaowei.service;

import com.atmaowei.controller.request.CoursePageRequest;
import com.atmaowei.entity.Course;
import com.atmaowei.entity.Student;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CourseService {

    void save(Course course);

    String getCnoByCname(String cname);

    String getCnameByCno(String cno);

    PageInfo<Course> page(CoursePageRequest coursePageRequest);

    void delete(String cno);

    void deleteCpnoEqualCno(String cpno);

    void update(Course course,String oldCno);

    Course getByCno(String cno);

    List<Course> getAllCourse();

    void deleteSelected(List<Course> courses);
}
